package com.mxfcode.front.bbs_login.mapper;

import com.mxfcode.entity.TSUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author moxiufeng
 * @date 2021/2/17 12:55
 */
@Mapper
public interface LoginMapper {

    TSUser selectById(String id);

    TSUser selectByName(String userName);

    TSUser selectByEmail(String email);

    int insertUser(TSUser user);

    int updateStatus(String id, int status);

    int updateHeader(String id, String headerUrl);

    int updatePassword(String id, String password);

    TSUser findUserById(@Param("id") String userId);
}
